package com.cstor.liang.web.system;

import com.cstor.liang.pojo.other.ResultJo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/10/17.
 */
@RestController
@RequestMapping("/system")
public class SysVarController {

    @RequestMapping(value = "/path", method = RequestMethod.GET)
    public ResultJo province(HttpServletRequest request) {
        //获取当前项目在文件系统上的路径
        return ResultJo.returnOk(
                (Object) request.getSession().getServletContext().getRealPath("/"));
    }
}
